//
//  Clock.h
//  GL_test_cpp
//
//  Created by Garrett Manka on 9/13/11.
//  Copyright 2011. All rights reserved.
//
#ifndef CLOCK_H_
#define CLOCK_H_

#ifdef _WIN32

#include <windows.h>

#else

#include <sys/time.h>

#endif


namespace Utilities
{
    class Clock
    {
		#ifdef WIN32

		LARGE_INTEGER frequency;                    // ticks per second
		LARGE_INTEGER startCount;                   //
		LARGE_INTEGER endCount;                     //

		#else

		timeval m_startCount;
        timeval m_endCount;

		#endif
        
        double  m_startTime_usec;
        double  m_endTime_usec;
        bool    m_isPaused;
    
    public:
    
        Clock();
        
        void   markCurrentTime();
        double getTimeInSecondsFromMark();

    };
}
#endif